<thead>			
	<tr>
		<?php echo $this->partial('index/manage/no-save-order.phtml', 'admin', array($this->url(array('action'=>'save-order')))); ?>			
		<th>
			<?php echo $this->partial('index/manage/header.phtml','admin',array('caption'=>$this->captions,'column'=>'inbound_code')); ?>
		</th>
		<!--<th>
			<?php echo $this->partial('index/manage/header.phtml','admin',array('caption'=>$this->captions,'column'=>'inbound_reason_code')); ?>
		</th>-->
		<?php if($this->inbound_type==1){?>
		<th> 
			<?php echo $this->partial('index/manage/header.phtml','admin',array('caption'=>"Đơn vị ".$this->string_inbound_type_2." hàng",'column'=>'company_name')); ?>
		</th>	
		<?php }?>
		<th>
			<?php echo $this->partial('index/manage/header.phtml','admin',array('caption'=>$this->captions,'column'=>'inbound_detail_product_code')); ?>
		</th>
		<th>
			<?php echo $this->partial('index/manage/header.phtml','admin',array('caption'=>"Tên hàng hóa",'column'=>'inbound_detail_product_code')); ?>
		</th>
		<th>
			<?php echo $this->partial('index/manage/header.phtml','admin',array('caption'=>$this->captions,'column'=>'inbound_detail_product_unit_code')); ?>
		</th>
		<th>
			<?php echo $this->partial('index/manage/header.phtml','admin',array('caption'=>$this->captions,'column'=>'inbound_detail_product_quantity')); ?>
		</th>
		<!--<th>
			<?php echo $this->partial('index/manage/header.phtml','admin',array('caption'=>$this->captions,'column'=>'inbound_detail_product_time')); ?>
		</th>
		<th>
			<?php echo $this->partial('index/manage/header.phtml','admin',array('caption'=>$this->captions,'column'=>'inbound_detail_expire_time')); ?>
		</th>
		<th>
			<?php echo $this->partial('index/manage/header.phtml','admin',array('caption'=>$this->captions,'column'=>'inbound_detail_lot_code')); ?>
		</th>-->
		<th>
			Ghi chú
		</th>
	</tr>
</thead>
<tbody>
	<?php if (count($this->paginator) > 0): $no=0;?>
	<?php foreach ($this->paginator as $row): ?>
	<tr class='row<?php echo ($no++)%2 ?>'>
		<?php echo $this->partial('index/manage/order.phtml', 'admin', array($no)) ?>
		<td class="is_code">
			<?php echo $row->inbound_code ?>
		</td>
		<!--<td class='left'>
			<?php echo $row->inbound_reason_code." - ".$row->m_Array['reason_content']; ?>
		</td>-->
		<?php if($this->inbound_type==1){?>
		<td class='left'>
			<?php echo $row->inbound_company_code; ?> - <?php echo $row->m_Array['company_name']; ?>
		</td>
		<?php }?>
		<td>
			<?php echo $row->m_Array['inbound_detail_product_code']; ?>
		</td>
		<td>
			<?php echo $row->m_Array['product_name']; ?>
		</td>
		<td >
			<?php echo $row->m_Array['unit_name']; ?>
		</td>
		<td class="right">
			<?php echo $this->partial('index/format/float.phtml','admin',array($row->m_Array['inbound_detail_product_quantity'])); ?>
		</td>		
		<!--<td class="center">
			<?php echo $this->partial('index/format/time.phtml','admin',array($row->m_Array['inbound_detail_product_time'])); ?>
		</td>
		<td class="center">
			<?php echo $this->partial('index/format/time.phtml','admin',array($row->m_Array['inbound_detail_expire_time'])); ?>
		</td>
		<td>
			<?php echo $row->m_Array['inbound_detail_lot_code']; ?>
		</td>-->
		<td>
			<?php echo $row->m_Array['inbound_detail_note']; ?>
		</td>
	</tr>
	<?php endforeach; ?>
	<?php endif;?>
</tbody>